import request from '@/utils/request'

export const EXPORT_URL = '/system/new/exportcardlist'

// 查询列表
export function listCard(query) {
  return request({
    url: '/system/new/showcardlist',
    method: 'post',
    params: query
  })
}

// 查询详情
export function getCard(id) {
  return request({
    url: '/system/edit/getcard?id=' + id,
    method: 'get'
  })
}

// 新增
export function addCard(data) {
  return request({
    url: '/system/new/savecardlist',
    method: 'post',
    data: data
  })
}

// 修改
export function updateCard(data) {
  return request({
    url: '/system/new/editcardlist',
    method: 'post',
    data: data
  })
}

// 删除
export function delCard(ids) {
  return request({
    url: '/system/new/delcardlist/' + ids,
    method: 'DELETE',
  })
}
